﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ERP.EquipmentManage.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.EquipmentManage
{
    /// <summary>
    /// 维修服务接口
    /// </summary>
    public interface IRpeairService : IApplicationService
    {
        /// <summary>
        /// 获取维修单分页列表
        /// </summary>
        Task<PagedResultDto<RepairDto>> GetListAsync(GetRepairInputDto input);

        /// <summary>
        /// 获取维修单详情
        /// </summary>
        Task<RepairDto> GetAsync(int id);

        /// <summary>
        /// 创建维修单
        /// </summary>
        Task<RepairDto> CreateAsync(CreateRepairDto input);

        /// <summary>
        /// 更新维修单
        /// </summary>
        Task<RepairDto> UpdateAsync(int id, UpdateRepairDto input);

        /// <summary>
        /// 删除维修单
        /// </summary>
        Task DeleteAsync(int id);

        /// <summary>
        /// 生成维修单编号
        /// </summary>
        Task<string> GenerateRepairCodeAsync();
    }
}
